using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 积分明细表
    /// </summary>
    [Table("JIUSHI_POINTSDETAILS")]
    public class PointsdetailsEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 用户主键
        /// </summary>
        [Column("F_USERID")]
        [MaxLength(50)]
        public string UserId { get; set; }

        /// <summary>
        /// 类别：1：获得 -1：消耗
        /// </summary>
        [Column("F_STATE")]
        public int? State { get; set; }

        /// <summary>
        /// 子级ID
        /// </summary>
        [Column("F_CHILDUSERID")]
        public string ChildUserId { get; set; }


        /// <summary>
        /// 公用名称
        /// </summary>
        [Column("F_PUBLICNAME")]
        public string PublicName { get; set; }

        


        /// <summary>
        /// 类别：1.本人推荐、2.裂变获得,-1:消耗
        /// </summary>
        [Column("F_TYPE")]
        public int? Type { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        [Column("F_CUSTOMERLOANUUID")]
        [MaxLength(50)]
        public string CustomerLoanUUID { get; set; }


        /// <summary>
        /// 积分前
        /// </summary>
        [Column("F_POINTSFRONT")]
        public decimal? PointsFront { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [Column("F_POINTS")]
        public decimal? Points { get; set; }

        /// <summary>
        /// 积分后
        /// </summary>
        [Column("F_POINTSAFTER")]
        public decimal? PointsAfter { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
        public int? SortCode { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        [MaxLength(50)]
        public string CreatorUserId { get; set; }


        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        [MaxLength(50)]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        [MaxLength(50)]
        public string DeleteUserId { get; set; }


    }
}
